44/57

# orch.dbg.on

Turns on debugging mode.

Usage

    orch.dbg.on(severity)

Arguments

severity

  Identifies the type of error messages that are displayed. You can identify the severity by the number or by the case-insensitive keyword shown in Table 6-1.

  Table 6-1 Debugging Severity Levels

  Keyword | Number | Description
  --- | --- | ---
  `all` | 11 | Return all messages.
  `critical` | `1` | Return only critical errors.
  `error` | `2` | Return all errors.
  `warning` | `3` | Return all warnings.

Return Value

The severity level

See Also

`orch.dbg.output`, `orch.dbg.off`

Example

This example turns on debugging for all errors:

    R> severe<-orch.dbg.on(severity<-2)
    R> severe
    [1] "ERROR" "2"